Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Well, what is on Line 27 Character 88?
~Laura Dwofreelyettu 16.Dec.03 01:08 PM a Web browser
Domino Designer 6.5 Windows XP


Does notes assume that default encoding is UTF-8 ?
Here is my code, if you see something which can cause an error,

Session session = getSession();
AgentContext agentContext = session.getAgentContext();
Database db = agentContext.getCurrentDatabase();
View view = db.getView("DWDocs");
lotus.domino.Document doctest = view.getFirstDocument();
String filename = "c:\\dxl\\"+doctest.getFirstItem("filename").getText()+".xml";
Stream stream = session.createStream();
if (stream.open(filename)) {
stream.truncate();
DxlExporter exporter = session.createDxlExporter();
exporter.setConvertNotesBitmapsToGIF(true);
System.out.println("Exported " + stream.writeText(exporter.exportDxl(doctest)) + " bytes to "+ filename);

XSLProcessor xp = new XSLProcessor(new XML4JLiaison4dom());
String x = "c:\\dxl\\"+doctest.getFirstItem("filename").getText()+".xml";
String s = "transform1.xsl";
StringWriter rw = new StringWriter();
XSLTInputSource xsrc = new XSLTInputSource(x);
XSLTInputSource ssrc = new XSLTInputSource(s);
XSLTResultTarget tout = new XSLTResultTarget(rw);
xp.process(xsrc,ssrc,tout);
getAgentOutput().println("Content-type: text/xml");
getAgentOutput().println(rw.toString());




Invalid UTF-8 from DXL document use... (~Laura Dwofreel... 12.Dec.03)
. . RE: Invalid UTF-8 from DXL document... (~Kirk Elreterod... 12.Dec.03)
. . Well, what is on Line 27 Character ... (~Dan Elhipister... 12.Dec.03)
. . . . Well, what is on Line 27 Character ... (~Laura Dwofreel... 13.Dec.03)
. . . . . . RE: Well, what is on Line 27 Charac... (~Laura Dwofreel... 15.Dec.03)
. . . . . . . . RE: Well, what is on Line 27 Charac... (~Kirk Elreterod... 16.Dec.03)
. . . . . . . . . . RE: Well, what is on Line 27 Charac... (~Laura Dwofreel... 16.Dec.03)
. . . . . . . . . . . . RE: Well, what is on Line 27 Charac... (~Kirk Elreterod... 16.Dec.03)
. . . . . . . . . . . . . . RE: Well, what is on Line 27 Charac... (~Laura Dwofreel... 17.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS